package me.zhengjie.modules.web.service;

import me.zhengjie.modules.system.service.dto.ExamOrderDto;
import me.zhengjie.modules.system.service.dto.GroupTestDto;
import me.zhengjie.modules.web.domain.AtmrOrderRequest;
import me.zhengjie.modules.web.domain.AtmrOrderResponse;
import me.zhengjie.modules.web.domain.OrderPayRequest;
import me.zhengjie.modules.web.domain.ReturnPayInfoVO;

public interface IAtmrOrderService {


    AtmrOrderResponse createOrder(AtmrOrderRequest request);

    ReturnPayInfoVO unifiedOrder(OrderPayRequest request);

    /**
     * 答完题更新订单答题状态
     * @return
     */
    boolean answerUpdate(String openId,String orderSn);

    /**
     * 查询已经支付未答题的订单
     * @param openId
     * @return
     */
    ExamOrderDto getPayedNoAnswerOrder(String openId,String atmrId);

    /**
     * 校验团测订单
     * @param groupId
     * @param openId
     * @return
     */
    GroupTestDto verifyGroupTest(Integer groupId, String openId);
}
